home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
net
/
drexxmail.lha
/
elmeditor.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-09-30
|
982b
|
43 lines
/* Editor.rexx - This script intercepts the temporary filename of anything */
/* that GRn/AmigaElm is editing - so we can send mail from them "directly" */
/* version 3.00 - 9-16-94, by Rick Taylor charlet@eng.clemson.edu */
/* New for v3.00 - A proc reads editor from ENV:DRMEDITOR */
/* ELM's */
options results
TFileName = ARG(1)
address command
/* Store this puppy for later */
call open .tfn,'t:elmrexxsendmail.name',write
call writeln .tfn,TFileName
call close .tfn
/* Now start the editor */
call open .dae,'t:elmrexxsendmail.cmd',write
call writeln .dae,envar('DRMEDITOR') TFileName
call close .dae
'execute t:elmrexxsendmail.cmd'
/* Now we hand control back to the caller... */
exit
envar: procedure
arg evname
epath = "ENV:"||evname
evalue = ""
if exists(epath) then do
call open .envar,epath,read
evalue = readln(.envar)
call close .envar
end
return evalue